var taskData = {
    "data": [
      {
        "id": "512",
        "start_date": "2018-09-23 00:00:00",
        "duration": 59,
        "text": "House Construction",
        "progress": "0",
        "type": "project",
        "parent": "0",
        "level": "0",
        "project_id": "51",
        "open": true,
        "end_date": "2018-11-21 00:00:00",
        "owner_id": []
      },
      {
        "id": "513",
        "start_date": "2018-09-23 00:00:00",
        "duration": 5,
        "text": "Architectural design",
        "progress": "0",
        "type": "project",
        "parent": "512",
        "level": "1",
        "project_id": "51",
        "open": true,
        "end_date": "2018-09-28 00:00:00",
        "owner_id": []
      },
      {
        "id": "514",
        "start_date": "2018-09-23 00:00:00",
        "duration": 3,
        "text": "Create a draft of architecture",
        "progress": "0",
        "type": "task",
        "parent": "513",
        "level": "2",
        "project_id": "51",
        "open": true,
        "end_date": "2018-09-26 00:00:00",
        "owner_id": []
      },
      {
        "id": "515",
        "start_date": "2018-09-24 00:00:00",
        "duration": 2,
        "text": "Prepare construction documents",
        "progress": "0",
        "type": "task",
        "parent": "514",
        "level": "3",
        "project_id": "51",
        "open": true,
        "end_date": "2018-09-26 00:00:00",
        "owner_id": [7, 9]
      },
      {
        "id": "516",
        "start_date": "2018-09-26 00:00:00",
        "duration": 1,
        "text": "Agreement to architectural plan",
        "progress": "0",
        "type": "task",
        "parent": "513",
        "level": "2",
        "project_id": "51",
        "open": true,
        "end_date": "2018-09-27 00:00:00",
        "owner_id": [7]
      },
      {
        "id": "517",
        "start_date": "2018-09-27 00:00:00",
        "duration": 1,
        "text": "Agreement with client",
        "progress": "0",
        "type": "task",
        "parent": "513",
        "level": "2",
        "project_id": "51",
        "open": true,
        "end_date": "2018-09-28 00:00:00",
        "owner_id": [7]
      },
      {
        "id": "518",
        "start_date": "2018-09-28 00:00:00",
        "duration": 39,
        "text": "Construction Phase",
        "progress": "0",
        "type": "project",
        "parent": "512",
        "level": "1",
        "project_id": "51",
        "open": true,
        "end_date": "2018-11-06 00:00:00",
        "owner_id": []
      },
      {
        "id": "519",
        "start_date": "2018-09-28 00:00:00",
        "duration": 7,
        "text": "Foundation",
        "progress": "0",
        "type": "project",
        "parent": "518",
        "level": "2",
        "project_id": "51",
        "open": true,
        "end_date": "2018-10-05 00:00:00",
        "owner_id": [8,9]
      },
      {
        "id": "520",
        "start_date": "2018-09-28 00:00:00",
        "duration": 4,
        "text": "Excavation",
        "progress": "0",
        "type": "task",
        "parent": "519",
        "level": "3",
        "project_id": "51",
        "open": true,
        "end_date": "2018-10-02 00:00:00",
        "owner_id": [8,9]
      },
      {
        "id": "521",
        "start_date": "2018-10-02 00:00:00",
        "duration": 3,
        "text": "Pour concrete",
        "progress": "0",
        "type": "task",
        "parent": "519",
        "level": "3",
        "project_id": "51",
        "open": true,
        "end_date": "2018-10-05 00:00:00",
        "owner_id": [8]
      },
      {
        "id": "522",
        "start_date": "2018-10-05 00:00:00",
        "duration": 7,
        "text": "Ground floor",
        "progress": "0",
        "type": "project",
        "parent": "518",
        "level": "2",
        "project_id": "51",
        "open": true,
        "end_date": "2018-10-12 00:00:00",
        "owner_id": []
      },
      {
        "id": "523",
        "start_date": "2018-10-05 00:00:00",
        "duration": 3,
        "text": "Walls to 1st Floor",
        "progress": "0",
        "type": "task",
        "parent": "522",
        "level": "3",
        "project_id": "51",
        "open": true,
        "end_date": "2018-10-08 00:00:00",
        "owner_id": [8]
      },
      {
        "id": "524",
        "start_date": "2018-10-08 00:00:00",
        "duration": 4,
        "text": "Roof structure",
        "progress": "0",
        "type": "task",
        "parent": "522",
        "level": "3",
        "project_id": "51",
        "open": true,
        "end_date": "2018-10-12 00:00:00",
        "owner_id": [8]
      },
      {
        "id": "525",
        "start_date": "2018-10-12 00:00:00",
        "duration": 8,
        "text": "1st Floor",
        "progress": "0",
        "type": "project",
        "parent": "518",
        "level": "2",
        "project_id": "51",
        "open": true,
        "end_date": "2018-10-20 00:00:00",
        "owner_id": []
      },
      {
        "id": "526",
        "start_date": "2018-10-12 00:00:00",
        "duration": 4,
        "text": "Walls to Terrace",
        "progress": "0",
        "type": "task",
        "parent": "525",
        "level": "3",
        "project_id": "51",
        "open": true,
        "end_date": "2018-10-16 00:00:00",
        "owner_id": [8]
      },
      {
        "id": "527",
        "start_date": "2018-10-16 00:00:00",
        "duration": 4,
        "text": "Roof Structure",
        "progress": "0",
        "type": "task",
        "parent": "525",
        "level": "3",
        "project_id": "51",
        "open": true,
        "end_date": "2018-10-20 00:00:00",
        "owner_id": [8]
      },
      {
        "id": "528",
        "start_date": "2018-10-20 00:00:00",
        "duration": 17,
        "text": "General works",
        "progress": "0",
        "type": "project",
        "parent": "518",
        "level": "2",
        "project_id": "51",
        "open": true,
        "end_date": "2018-11-06 00:00:00",
        "owner_id": []
      },
      {
        "id": "529",
        "start_date": "2018-10-20 00:00:00",
        "duration": 1,
        "text": " Installation of air conditioning systems",
        "progress": "0",
        "type": "task",
        "parent": "528",
        "level": "3",
        "project_id": "51",
        "open": true,
        "end_date": "2018-10-21 00:00:00",
        "owner_id": [13]
      },
      {
        "id": "530",
        "start_date": "2018-10-21 00:00:00",
        "duration": 2,
        "text": "Installation of heating systems",
        "progress": "0",
        "type": "task",
        "parent": "528",
        "level": "3",
        "project_id": "51",
        "open": true,
        "end_date": "2018-10-23 00:00:00",
        "owner_id": [13]
      },
      {
        "id": "531",
        "start_date": "2018-10-23 00:00:00",
        "duration": 7,
        "text": "Electricity installation",
        "progress": "0",
        "type": "task",
        "parent": "528",
        "level": "3",
        "project_id": "51",
        "open": true,
        "end_date": "2018-10-30 00:00:00",
        "owner_id": [12]
      },
      {
        "id": "532",
        "start_date": "2018-10-30 00:00:00",
        "duration": 7,
        "text": "Waterworks and Plumbing",
        "progress": "0",
        "type": "task",
        "parent": "528",
        "level": "3",
        "project_id": "51",
        "open": true,
        "end_date": "2018-11-06 00:00:00",
        "owner_id": [11]
      },
      {
        "id": "533",
        "start_date": "2018-11-06 00:00:00",
        "duration": 15,
        "text": "Decoration Phase",
        "progress": "0",
        "type": "project",
        "parent": "512",
        "level": "1",
        "project_id": "51",
        "open": true,
        "end_date": "2018-11-21 00:00:00",
        "owner_id": []
      },
      {
        "id": "534",
        "start_date": "2018-11-06 00:00:00",
        "duration": 4,
        "text": "Walls",
        "progress": "0",
        "type": "task",
        "parent": "533",
        "level": "2",
        "project_id": "51",
        "open": true,
        "end_date": "2018-11-10 00:00:00",
        "owner_id": [10]
      },
      {
        "id": "535",
        "start_date": "2018-11-09 00:00:00",
        "duration": 3,
        "text": "Ceilings",
        "progress": "0",
        "type": "task",
        "parent": "533",
        "level": "2",
        "project_id": "51",
        "open": true,
        "end_date": "2018-11-12 00:00:00",
        "owner_id": [10]
      },
      {
        "id": "536",
        "start_date": "2018-11-11 00:00:00",
        "duration": 3,
        "text": "Floorings",
        "progress": "0",
        "type": "task",
        "parent": "533",
        "level": "2",
        "project_id": "51",
        "open": true,
        "end_date": "2018-11-14 00:00:00",
        "owner_id": [13]
      },
      {
        "id": "537",
        "start_date": "2018-11-14 00:00:00",
        "duration": 3,
        "text": "Furniture ",
        "progress": "0",
        "type": "task",
        "parent": "533",
        "level": "2",
        "project_id": "51",
        "open": true,
        "end_date": "2018-11-17 00:00:00",
        "owner_id": [13]
      },
      {
        "id": "538",
        "start_date": "2018-11-17 00:00:00",
        "duration": 4,
        "text": "Final Touches",
        "progress": "0",
        "type": "task",
        "parent": "533",
        "level": "2",
        "project_id": "51",
        "open": true,
        "end_date": "2018-11-21 00:00:00",
        "owner_id": [13]
      },
      {
        "id": "539",
        "start_date": "2018-11-21 00:00:00",
        "duration": 0,
        "text": "Project submission",
        "progress": "0",
        "type": "milestone",
        "parent": "512",
        "level": "1",
        "project_id": "51",
        "open": true,
        "end_date": "2018-11-21 00:00:00",
        "owner_id": []
      }
    ],
    "links": [
      {
        "id": "407",
        "source": "514",
        "target": "516",
        "type": "0",
        "project_id": "51"
      },
      {
        "id": "408",
        "source": "515",
        "target": "516",
        "type": "0",
        "project_id": "51"
      },
      {
        "id": "409",
        "source": "516",
        "target": "517",
        "type": "0",
        "project_id": "51"
      },
      {
        "id": "410",
        "source": "513",
        "target": "518",
        "type": "0",
        "project_id": "51"
      },
      {
        "id": "412",
        "source": "520",
        "target": "521",
        "type": "0",
        "project_id": "51"
      },
      {
        "id": "413",
        "source": "519",
        "target": "522",
        "type": "0",
        "project_id": "51"
      },
      {
        "id": "414",
        "source": "523",
        "target": "524",
        "type": "0",
        "project_id": "51"
      },
      {
        "id": "415",
        "source": "522",
        "target": "525",
        "type": "0",
        "project_id": "51"
      },
      {
        "id": "416",
        "source": "526",
        "target": "527",
        "type": "0",
        "project_id": "51"
      },
      {
        "id": "417",
        "source": "529",
        "target": "530",
        "type": "0",
        "project_id": "51"
      },
      {
        "id": "418",
        "source": "525",
        "target": "528",
        "type": "0",
        "project_id": "51"
      },
      {
        "id": "419",
        "source": "530",
        "target": "531",
        "type": "0",
        "project_id": "51"
      },
      {
        "id": "420",
        "source": "531",
        "target": "532",
        "type": "0",
        "project_id": "51"
      },
      {
        "id": "422",
        "source": "518",
        "target": "533",
        "type": "0",
        "project_id": "51"
      },
      {
        "id": "423",
        "source": "534",
        "target": "538",
        "type": "0",
        "project_id": "51"
      },
      {
        "id": "424",
        "source": "535",
        "target": "538",
        "type": "0",
        "project_id": "51"
      },
      {
        "id": "425",
        "source": "536",
        "target": "538",
        "type": "0",
        "project_id": "51"
      },
      {
        "id": "426",
        "source": "537",
        "target": "538",
        "type": "0",
        "project_id": "51"
      },
      {
        "id": "427",
        "source": "533",
        "target": "539",
        "type": "0",
        "project_id": "51"
      }
    ]
}